
package com.bitnei.battery.constants;

public enum StatusCode {

    CODE_0(0, "OK"),

    CODE_1(-1, "FAIL"),

    CODE_1001(1001, "token不合法或无权限"),

    CODE_1002(1002, "参数缺失"),

    CODE_10021(10021, "处理异常,参数不合法或服务异常"),

    CODE_1003(1003, "令牌为空"),

    CODE_1004(1004, "该账号处于无效状态"),

    CODE_1005(1005, "该账号已过期"),

    CODE_1006(1006, "您无当前接口的访问权限"),

    CODE_1007(1007, "当前接口已被禁止访问"),

    CODE_1011(1011, "该账号当天访问次数已达到限制"),

    CODE_1012(1012, "该账号每分钟访问次数已达到限制"),

    CODE_1013(1013, "您当前接口当天的访问次数已达到限制"),

    CODE_1014(1014, "您当前接口每分钟访问次数已达到限制"),

    CODE_1021(1021, "请求已过期,请确认时间戳正常"),

    CODE_1022(1022, "签名验证失败"),

    CODE_1023(1023, "当前访问请求携带相同数据"),

    CODE_1024(1024, "数据解密异常，请检查加密KEY"),

    CODE_1031(1031, "数据集为空"),

    CODE_1032(1032, "数据集数量超出限制"),

    CODE_1033(1033, "为确保数据合法，请先在测试环境进行联调对接，联调通过后才能在正式环境接入数据！"),

    CODE_1034(1034, "起止时间差距太大不能进行数据查询");

    private final int code;

    private final String message;

    StatusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
